package com.liurui.demo.mapper;

import com.liurui.demo.pojo.Employee;
import org.springframework.stereotype.Repository;

import java.util.Collection;

@Repository
public interface EmployeeMapper {
    //增加一个员工
    public void insert(Employee employee);

    //更新一个员工
    public void update(Employee employee);

    //查询所有员工
    public Collection<Employee> getEmployees();

    //跟据id查询单个员工
    public Employee getEmployeeById(Integer id);

    //跟据id删除单个员工
    public void deleteEmployeeById(Integer id);


}
